package com.cos.m3.web.controller;

import com.cos.m3.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;

/**
 * @author: COS
 * @time: 2022/6/9 10:05
 * @description:
 */
@Controller
@RequestMapping("/user")
public class UserController  {
    @RequestMapping("/check")
    @ResponseBody
    public User checkUserByName(){
        System.out.println("check");
        return null;
    }

    @RequestMapping("/getAll")
    public String getAll(HttpSession session){
//        User u = (User) session.getAttribute("is_login");
//        if (u != null) {
//
//        }
        System.out.println("getAll");
        return null;
    }
    @RequestMapping("/addUser")
    public String addUser(){
        System.out.println("adduser");
        return null;
    }
    @RequestMapping("/delUser")
    public String delUser(){
        System.out.println("delUser");
        return null;
    }
}
